package com.eqs.enterprisequestionnaire.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@TableName("response")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Response {
    /*
     * id主键
     * */
    private Integer id;
    /*
     * 所属问卷ID
     * */
    private Integer questionnaireId;
    /*
     * 提交回答的用户ID
     * */
    private Integer userId;
    /*
    * 开始时间
    * */
    private LocalDateTime startTime;
    /*
     * 提交时间
     * */
    private LocalDateTime submittedTime;
    /*
     * 更新时间
     * */
    private LocalDateTime updatedTime;


    @TableField(exist = false)
    private List<Answer> answers;
}
